<?php
/**
 *@todo 模板模型
 +------------------------------------------------------------------------------
 * @version   1.0
 * @since 2015-7-14
 +------------------------------------------------------------------------------
 */
namespace Admin\Model;
use Think\Model\ViewModel;
class ActivityThemeViewModel extends ViewModel{
	
	public $viewFields = array(
			'activity_theme'=>array('*'),//以主表为主
			'activity_theme_relation'=>array('activity_id', '_on'=>'activity_theme_relation.theme_id = activity_theme.activity_theme_id'),
	        'activity'=>array('activity_name', '_on'=>'activity.activity_id = activity_theme_relation.activity_id'),
	);
}